Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] Added the ability to print the inverse dependency tree #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexandregaldeano
Copy link

@alexandregaldeano alexandregaldeano commented Dec 6, 2024

In our codebase we needed to know which modules were the most depended on.

So, here it is, the inverse dependency tree, where:

account (13.0+c)
└── c (no version)
    └── a (13.0.1.0.0)

Reads "account is a dependence of c, and c is a dependence of a".

Changes made:

  • Added the --inverse option to the tree command
  • Added the parents field in the tree.Node class, which is populated in the tree.tree_command.add function
  • The parents field is used instead of the children field in the tree.Node.print method when in inverse mode

@alexandregaldeano alexandregaldeano marked this pull request as ready for review December 6, 2024 15:24
Copy link

@petrus-v petrus-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one ;)

Technically Code looks good to me !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants